<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn1(){
            return new Promise(res=>{
                setTimeout(()=>{
                    res(11111);
                },1000);
            });
        }
        function fn2(){
            return new Promise(res=>{
                setTimeout(()=>{
                    res(22222);
                },2000);
            });
        }
        function fn3(){
            return new Promise(res=>{
                setTimeout(()=>{
                    res(33333);
                },3000);
            });
        }
        async function fn(){
            try{
                let res1 = await fn1() ; 
                console.log(res1);
                let res2 = await fn2() ; 
                console.log(res2);
                let res3 = await fn3() ; 
                console.log(res3);
            }catch(err){
                console.log(err);
            }finally{
                console.log("执行完成！");
            }
        }
        fn();
    </script>
</body>
</html>